import { request } from '@umijs/max';

/** 系统操作日志查询 GET /system/operate-log/list */
export async function getOperateLogList(params?: API.QueryOperateLogPageParams) {
  return request<API.QueryPageResp<API.OperateLog>>('/system/operate-log/list', {
    method: 'GET',
    params,
  });
}

/** 用户登录日志查询 GET /system/login-log/list */
export async function getLoginLogList(params?: API.QueryLoginLogPageParams) {
  return request<API.QueryPageResp<API.LoginLog>>('/system/login-log/list', {
    method: 'GET',
    params,
  });
}
